package com.lzx.adx.report.enums;


public enum XiaoMiYYEnum {
    register("android_register", "APP_REGISTER", "qfJbprOeuzJlVGKO"),
    day1retention("android_day1retention", "APP_RETENTION", "nVPAoqyuUKXvGQAq"),
    pay("android_addtocart", "APP_PAY", "rwmWCVqMnRIzYtHQ"),

    ;

    private String productCode;

    private String xiaomiCode;

    private String xiaomiKey;


    XiaoMiYYEnum(String productCode, String xiaomiCode, String xiaomiKey) {
        this.productCode = productCode;
        this.xiaomiCode = xiaomiCode;
        this.xiaomiKey = xiaomiKey;

    }

    public String getProductCode() {
        return productCode;
    }

    public String getXiaomiCode() {
        return xiaomiCode;
    }

    public String getXiaomiKey() {
        return xiaomiKey;
    }


    public static XiaoMiYYEnum getXMCode(String productCode) {
        XiaoMiYYEnum[] qttWBEnums = XiaoMiYYEnum.values();
        for (XiaoMiYYEnum qttWBEnum : qttWBEnums) {
            if (qttWBEnum.getProductCode().equals(productCode)) {
                return qttWBEnum;
            }
        }
        return null;
    }

}
